package com.xbongbong.pro.statistic.pojo.dto;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.domain.entity.ChartCategorySearchEntity;
import com.xbongbong.pro.domain.entity.ChartCategoryTextEntity;
import com.xbongbong.pro.domain.entity.ChartEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 仪表盘样式保存入参
 * @author weiming
 * @date 2021/3/15 9:59
 */

@Getter
@Setter
@ToString
public class ChartSaveStyleDTO extends BaseDTO {


    @NotNull(message = "chart实体不可为空")
    private List<ChartEntity> chartList;

    private Long categoryId;
    /**
     *  全局样式
     **/
    private JSONObject globalStyleOption;
    /**
     *  查询条件的样式
     **/
    private List<ChartCategorySearchEntity> searchList;
    /**
     *  文本组件的样式
     **/
    private List<ChartCategoryTextEntity> textList;

}
